package com.example.p5;

/**
 * @author Lenovo
 */
public class StringReverseExample {
    public static void main(String[] args) {
        String string="runoob";
        String reverse =new StringBuffer(string).reverse().toString();
        System.out.println("字符串反转前：" + string);
        System.out.println("字符串反转后: " + reverse);
    }
    }
